package com.uppfind.framework.service.simple;

import com.uppfind.framework.bean.po.GenericPo;
import com.uppfind.framework.dao.api.UpdateMapper;
import com.uppfind.framework.dao.api.common.params.UpdateParam;
import com.uppfind.framework.service.UpdateService;

/**
 * Created by xuliugen on 2017/6/29.
 */
public interface SimpleUpdateService<PO extends GenericPo<PK>, PK> extends UpdateService<PO> {

    UpdateMapper<PO> getUpdateMapper();

    @Override
    default int update(UpdateParam<PO> param) {
        return getUpdateMapper().update(param);
    }

}
